var static = require('node-static');

// 
// Create a node-static server instance to serve the './public' folder 
// 
var file = new static.Server('./');

require('http').createServer(function (request, response) {
    request.addListener('end', function () {
        console.log("server on " + response);
        file.serve(request, response);


    }).resume();
}).listen(8080);